package com.gxa.merchant.service.impl;

import com.gxa.common.R;
import com.gxa.common.entity.usermange.Merchant;
import com.gxa.merchant.mapper.ShopMapper;
import com.gxa.merchant.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShopServiceImpl implements ShopService {

    @Autowired
    private ShopMapper shopMapper;

    @Override
    public R findShopByIdService(Integer id) {
        R r = new R();
        List<Merchant> shopByIdMapper = shopMapper.findShopByIdMapper(id);
        r.setCode(200);
        r.setMessage("查询成功");
        r.setData(shopByIdMapper);

        return r;
    }
}
